package com.zhehekeji.opsys.api.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "t_search_histroy")
public class TSearchHistroy implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7882871838005085314L;
	
	private Long id;
	private String account;
	private String searchName;
	private Integer pageNo;
	private String poster;
	private String contentName;
	private String contentCode;
	private String operatorIdentity;
	private Date createTime;
	private Date updateTime;
    private Integer hdflag;
    private String operatorName;
    private String areaIdentity;
    private String areaName;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "ACCOUNT", length = 64)
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	@Column(name = "SEARCH_NAME", length = 128)
	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}

	@Column(name = "PAGE_NO")
	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	@Column(name = "CONTENT_NAME", length = 128)
	public String getContentName() {
		return contentName;
	}

	public void setContentName(String contentName) {
		this.contentName = contentName;
	}

	@Column(name = "CONTENT_CODE", length = 64)
	public String getContentCode() {
		return contentCode;
	}

	public void setContentCode(String contentCode) {
		this.contentCode = contentCode;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", nullable = true)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "POSTER", length = 1024, nullable = true)
	public String getPoster() {
		return poster;
	}

	public void setPoster(String poster) {
		this.poster = poster;
	}

	@Column(name = "HDFLAG")
	public Integer getHdflag() {
		return hdflag;
	}

	public void setHdflag(Integer hdflag) {
		this.hdflag = hdflag;
	}

	@Column(name = "OPERATOR_IDENTITY", length = 64, nullable = true)
	public String getOperatorIdentity() {
		return operatorIdentity;
	}

	public void setOperatorIdentity(String operatorIdentity) {
		this.operatorIdentity = operatorIdentity;
	}
	
	@Column(name = "OPERATOR_NAME", length = 64, nullable = true)
	public String getOperatorName() {
		return operatorName;
	}

	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}

	@Column(name = "AREA_IDENTITY", length = 64, nullable = true)
	public String getAreaIdentity() {
		return areaIdentity;
	}

	public void setAreaIdentity(String areaIdentity) {
		this.areaIdentity = areaIdentity;
	}

	@Column(name = "AREA_NAME", length = 64, nullable = true)
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", nullable = true)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}
